#KERNELDIR = /lib/modules/$(shell uname -r)/build
KERNELDIR = ~/linux-3.14-OK.bak/
obj-m += platform_device.o
obj-m += platform_driver.o

all:
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd)
	arm-linux-gcc led_app.c -o led_app
	cp *.ko led_app /source/rootfs/

clean:
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) clean
